<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use frontend\assets\AppAsset;
use common\widgets\Alert;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<?php 
if(Yii::$app->controller->id == 'cartoon' && Yii::$app->controller->action->id == 'view'){
    echo $this->render('_topnav');
}else{
    echo $this->render('_header');
}
?>
<?= Alert::widget() ?>
<?= $content ?>
<div class="footer">
	<p>Copyright© 2005-2017 52Tian.Net Inc. All rights reserved. 天上人间动漫网</p>
	<p>免责声明：叮当动漫网所有动画片、动漫电影均来自互联网收集，动漫版权归原创者及发行商所有，如果侵犯了你的权益，请通知我们删除侵权内容，谢谢合作！</p>
	<div class="right-bottom" id="back-top">
        <div class="back-top">
            <img src="/images/backtop.png" alt="backtop" />
        </div>
        <em class="fk">返回顶部</em>
    </div>
</div>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
